#pragma once

//SerialPort.h
//#include "stdafx.h"
#include "afxdialogex.h"

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

class SerialPort{
public:
	BOOL OpenCom(LPCSTR Comname);
	void CloseCom();

	void Sendfloat(float lpoutfloat);
	void Sendchar(char* lpoutchar);
	void Sendbyte(int lpoutint);

	void Receivechar(char lpinchar[100]);

private:

	HANDLE hCom;

};